/*
 * @Author: your name
 * @Date: 2020-04-22 15:15:01
 * @LastEditTime: 2020-04-23 15:11:18
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \portal\src\api\home\index.js
 */
import request from "@/router/axios";

/**
 *
 * @param {Number} query 参数
 * @returns {Function} api
 */
export function axiosGetUserTaskList(query) {
  return request({
    url: "/admin/userTaskList/page",
    method: "get",
    params: query
  });
}

/**
 *
 * @param {Number} data 参数
 * @returns {Function} api
 */
export function axiosGetH3WorkFlowList(data) {
  return request({
    url: "/admin/h3WorkFlow/getH3Task",
    method: "POST",
    data
  });
}

/**
 *
 * @param {Object} query 参数
 * @returns {Function} api
 */
export function axiosGetUserCommonMenuList(query) {
  return request({
    url: "/admin/userCommonMenu/list",
    method: "get",
    params: query
  });
}

/**
 *
 * @param {Object} query 参数
 * @returns {Function} api
 */
export function axiosGetUserCommonMenuAllList(query) {
  return request({
    url: "/admin/userCommonMenu/all",
    method: "get",
    params: query
  });
}

/**
 *
 * @param {Object} data 参数
 * @returns {Function} api
 */
export function axiosGetUserCommonMenu(data) {
  return request({
    url: "/admin/userCommonMenu",
    method: "post",
    data
  });
}

/**
 *
 * @param {Object} data 参数
 * @returns {Function} api
 */
export function axiosGetUserItemCount() {
  return request({
    url: "/admin/user/getUserItemCount",
    method: "get"
  });
}

/**
 * 获取工作台账
 * @param {Object} query 参数
 * @returns {Function} api
 */
export function axiosGetSysWorkMenu(query) {
  console.log(query);
  return request({
    url: "/admin/sysWorkMenu",
    method: "get",
    params: query
  });
}
